package com.book.oauth.server.role.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * Description：
 * @Author： leo.xiong
 * @CreateDate： 2019/10/11 12:24
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AuthRole extends Role implements GrantedAuthority, Serializable {
    private static final long serialVersionUID = -141472233684082519L;

    @Override
    public String getAuthority() {
        return getRoleName();
    }
}
